<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改POS终端信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-formalPos-shutPos" th:object="${formalPos}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">POS编号：</label>
                <div class="col-sm-8">
                    <input name="posno" th:field="*{posno}" class="form-control" type="text" required>
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">终端状态：</label>
                <div class="col-sm-8">
                    <select class="form-control" name="status" required>
                        <option value="0" th:selected="${formalPos.status=='0'}">启用</option>
                        <option value="1" th:selected="${formalPos.status=='1'}">关停</option>
                    </select>
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">备注：</label>
                <div class="col-sm-8">
                    <textarea type="text" name="note" class="form-control" placeholder="请输入文本" required></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "formalPos/formalPos";
        $("#form-formalPos-shutPos").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/shutPos", $('#form-formalPos-shutPos').serialize());
            }
        }


    </script>
</body>
</html>